package com.yanze.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;

import javax.persistence.*;
import java.util.Date;

public class User {
    @Id
    private String userid;

    private String username;

    @JsonIgnore
    private String password;

    private String nickname;

    private String userphone;

    private String userqq;

    private String userwechat;

    private String usericon;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss a", locale = "zh", timezone = "GMT+8")
    private Date time;

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    /**
     * @return user_id
     */
    public String getUserid() {
        return userid;
    }

    /**
     * @param userId
     */
    public void setUserid(String userId) {
        this.userid = userId;
    }

    /**
     * @return username
     */
    public String getUsername() {
        return username;
    }

    /**
     * @param username
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * @return nickname
     */
    public String getNickname() {
        return nickname;
    }

    /**
     * @param nickname
     */
    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    /**
     * @return userphone
     */
    public String getUserphone() {
        return userphone;
    }

    /**
     * @param userphone
     */
    public void setUserphone(String userphone) {
        this.userphone = userphone;
    }

    /**
     * @return userqq
     */
    public String getUserqq() {
        return userqq;
    }

    /**
     * @param userqq
     */
    public void setUserqq(String userqq) {
        this.userqq = userqq;
    }

    /**
     * @return userwechat
     */
    public String getUserwechat() {
        return userwechat;
    }

    /**
     * @param userwechat
     */
    public void setUserwechat(String userwechat) {
        this.userwechat = userwechat;
    }

    /**
     * @return user_icon
     */
    public String getUsericon() {
        return usericon;
    }

    /**
     * @param userIcon
     */
    public void setUsericon(String userIcon) {
        this.usericon = userIcon;
    }
}